package com.linzm.behavioraltype.mediator05;

/**
 * @Author zimingl
 * @Date 2023/4/16 3:33
 * @Description: MediatorPatternDemo
 */
public class MediatorPatternDemo {
    public static void main(String[] args) {
        User robert = new User("Robert");
        User john = new User("John");

        robert.sendMessage("Hi! John!");
        john.sendMessage("Hello! Robert!");
    }
}
